package com.qys.livesMall.shop.modal.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.annotation.Id;

/**
 * @packageName:
 * @className:ShopCart
 * @Description:
 * @author:guomx
 * @date:2023/6/199:52
 */
@Data
public class ShopCart {

    @Id
    private String _id;
    @Schema(description = "用户名字")
    private String userName;
    @Schema(description = "用户id")
    private Long userId;
    @Schema(description = "商铺id")
    private Long shopId;
    @Schema(description = "店铺名")
    private String shopName;
    @Schema(description = "小店头像地址")
    private String shopAvatarUrl;
    @Schema(description = "小店封面地址")
    private String shopCoverUrl;
    @Schema(description = "主播id")
    private Long anchorId;
    @Schema(description = "任务id")
    private Long taskId;
    @Schema(description = "商品名")
    private Long goodsId;
    @Schema(description = "商品名")
    private String name;
    @Schema(description = "规格名")
    private String skuName;
    @Schema(description = "单价")
    private String price;
    @Schema(description = "原价")
    private String originalPrice;
    @Schema(description = "图片")
    private String image;
    @Schema(description = "skuId")
    private Long skuId;
    @Schema(description = "数量")
    private Integer num;

    @Schema(description = "库存数量")
    @TableField(exist = false)
    private Integer inventoryNum;
}
